<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>哈移动功能</title>
    <!-- 引入 Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
    <!-- 引入 Font Awesome 图标库 -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .header {
            text-align: center;
            padding: 40px 0;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            margin-bottom: 40px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .header h1 {
            font-weight: 700;
            letter-spacing: 1px;
        }

        .header p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        .card-container {
            max-width: 500px;
            margin: 0 auto 40px;
        }

        .card {
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: none;
            overflow: hidden;
        }

        .card-header {
            background: white;
            padding: 25px;
            text-align: center;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .card-body {
            padding: 30px;
        }

        .form-icon {
            position: absolute;
            left: 15px;
            top: 12px;
            color: #6a11cb;
            font-size: 1.2rem;
        }

        .form-group {
            position: relative;
            margin-bottom: 25px;
        }

        .form-control {
            padding-left: 45px;
            height: 50px;
            border-radius: 8px;
            border: 1px solid #ddd;
            transition: all 0.3s;
        }

        .form-control:focus {
            border-color: #6a11cb;
            box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.25);
        }

        .btn-primary {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            border: none;
            padding: 12px;
            font-size: 1.1rem;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(106, 17, 203, 0.4);
        }

        .info-section {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-top: 30px;
        }

        .info-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .info-icon {
            width: 40px;
            height: 40px;
            background: rgba(106, 17, 203, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: #6a11cb;
        }

        .footer {
            text-align: center;
            padding: 20px 0;
            color: #6c757d;
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
<div class="header">
    <div class="container">
        <h1><i class="fa-solid fa-mobile-screen-button me-2"></i>哈移动功能</h1>
        <p>请输入您的卡号信息以触发随机消费</p>
    </div>
</div>

<div class="container">
    <div class="card-container">
        <div class="card">
            <div class="card-header">
                <h3>身份验证</h3>
                <p class="text-muted">请输入您的卡号和密码</p>
            </div>
            <div class="card-body">
                <form action="/springmvc02_ssm/useMobile" method="post">
                    <div class="form-group">
                        <i class="fa-solid fa-credit-card form-icon"></i>
                        <input type="text" class="form-control" id="number" name="number" placeholder="请输入手机卡号" required>
                    </div>
                    <div class="form-group">
                        <i class="fa-solid fa-lock form-icon"></i>
                        <input type="password" class="form-control" id="mima" name="mima" placeholder="请输入密码" required>
                    </div>

                    <button type="submit" class="btn btn-primary w-100">
                        <i class="fa-solid fa-play me-2"></i>触发消费
                    </button>
                </form>

                <div class="info-section mt-4">
                    <h5><i class="fa-solid fa-circle-info me-2"></i>功能说明</h5>
                    <div class="info-item">
                        <div class="info-icon">
                            <i class="fa-solid fa-random"></i>
                        </div>
                        <div>系统将为您随机生成一个消费场景</div>
                    </div>
                    <div class="info-item">
                        <div class="info-icon">
                            <i class="fa-solid fa-calculator"></i>
                        </div>
                        <div>根据您的套餐和余额自动计算消费结果</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="footer">
    <div class="container">
        <p>© 2023 哈学院移动业务大厅 | 让沟通更简单，让生活更精彩</p>
        <p class="text-muted small mt-2">服务热线：400-123-4567</p>
    </div>
</div>

<!-- 引入 Bootstrap JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script>
    $(document).ready(function() {
        // 表单提交时显示加载状态
        $('form').submit(function() {
            const btn = $(this).find('button[type="submit"]');
            btn.prop('disabled', true);
            btn.html('<i class="fa-solid fa-spinner fa-spin me-2"></i>处理中...');
        });
    });
</script>
</body>
</html>